package com.wanlian.service.impl;

import com.wanlian.common.PageCondition;
import com.wanlian.dao.TaskDao;
import com.wanlian.dao.UserTaskDao;
import com.wanlian.entity.UserTask;
import com.wanlian.error.ErrorCode;
import com.wanlian.model.ResultModel;
import com.wanlian.service.UserTaskServices;
import com.wanlian.vo.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Map;

@Service
public class UserTaskServicesImpl implements UserTaskServices {

    @Autowired
    private UserTaskDao userTaskDao;

    @Override
    public ResultModel queryUserTasks(PageCondition pageCondition) {
        return userTaskDao.queryUserTasks(pageCondition);
    }

    @Override
    public ResultModel delUserTask(UserTask userTask) {
           return userTaskDao.delUserTasks(userTask);
    }

    @Override
    public ResultModel addUserTask(UserTask userTask) {
        return userTaskDao.addUserTask(userTask);
    }

    @Override
    public ResultModel updUserTask(UserTask userTask) {
        return null;
    }


}
